package com.xcf.util;

/**
 * author ：yangchao
 * date ：2016/10/13
 * Description：
 *
 * @version V1.0
 */
public enum ResponseStatusEnum {

    SUCCESS("200", "操作成功",true), // 操作成功
    EXCEPTION("500", "操作异常",false),// 可知异常
    PARAM_ERROR("401", "参数错误",true), // 参数校验失败
    NOLOGIN("402", "未登录",true), // 未登录
    FAIL("403" , "操作失败",true), // 操作失败， 如：更新失败
    ERROR("000", "系统繁忙",false); // 系统未知异常

    private String code;
    private String msg;
    private boolean success;

    private ResponseStatusEnum(String code, String msg , boolean success) {
        this.code = code;
        this.msg = msg;
        this.success = success;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public boolean getSuccess(){return this.success;}

}
